<template>
  <view>
    123
  </view>
</template>

<script>
  import { mapState } from 'vuex'
  export default {
    name:"comment",
    data() {
      return {
        
      };
    },
    computed: {
        ...mapState(['VideoId'])
      },
    created() {
      this.getVideoRecommend(this.VideoId)
    },
    methods:{
      async getVideoRecommend(id) {
        const { data: res } = await uni.$http.get('comment/video', { id: id })
        console.log(res)
        if (res.code !== 200) return uni.$showMsg('视频评论获取失败')
        // this.videoUrl = res.urls[0].url
      },
    }
  }
</script>

<style lang="scss" scoped>

</style>